<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" omit-xml-declaration="yes"/>
  <xsl:param name="jsx_id">abcdefghi</xsl:param>
  <xsl:template match="/">
	  <script type="text/javascript">
			function tempFunc(elem){
                   
				snowsoft.gibay.publish({subject:snowsoft.gibay.Event.ON_SEARCH,target:elem});
				};	
		</script>

	  <ol class="simplelist">
    	    <xsl:for-each select="//record">
     		<li> 
			<xsl:choose>
        			<xsl:when test="@jsxid=''">
        			</xsl:when>
					<xsl:otherwise>
						<a title="click to search" href="/" onclick="snowsoft.gibay.APP.getJSXByName('cmbKeywords').setValue('{@jsxtext}');tempFunc(this);return false;">
							<xsl:value-of select="@jsxtext"/>
						</a>
        			</xsl:otherwise>
      			</xsl:choose>
 		</li> 
  	    </xsl:for-each>
  	  </ol>

  </xsl:template>
</xsl:stylesheet>